<?php

namespace catchAdmin\sms\model;

use app\common\model\BaseModel;
use catchAdmin\sms\model\search\SmsRecordSearch;
use catcher\base\CatchModel as Model;

class SmsRecord extends BaseModel
{
    use SmsRecordSearch;

    public $name = 'sms_record';

    public function getLists()
    {
        $result = $this->mongoSearch();

        return $result->order(["created_at" => -1])->paginate($this->pageLimit);
    }
}